<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tipask's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset={APP_CHARSET}">
<link media="all" type="text/css" href="css/admin/admincp.css" rel="stylesheet" />
</head>

<body>

<div id="append">
</div>
<div class="container">
	<div class="hastabmenu">
		<ul class="tabmenu">
			<li class="tabcurrent"><a href="index.php?c=admin_usergroup&a=default">会员用户组</a> </li>
			<li><a  href="index.php?c=admin_usergroup&a=system">系统用户组</a></li>
		</ul>
		<div class="tabcontentcur">
			<form action="index.php?c=admin_usergroup&a=add" method="post">
			<table width="50%">
				<tr>
					<td>添加会员组:</td>
					<td><input class="txt" name="title" ></td>
					<td><input class="btn" type="submit" value="提 交"></td>
				</tr>
			</table>
			</form>
		</div>
	</div>
	
<!--{if isset($message)}-->
	<!--{eval $type=isset($type)?$type:'correctmsg'; }-->
	<div class="{$type}"><p>{$message}</p></div>
<!--{/if}-->
	
<div class="mainbox">

	<form action="index.php?c=admin_usergroup&a=edit" method="post">
		<table class="datalist fixwidth" >
			<tr>
				<th>用户组ID</th>
				<th>用户组</th>
				<th>组权限</th>
				<th>删除</th>
			</tr>
			{loop $usergrouplist $usergroup}
			<tr>
				<td width="150"><strong>{$usergroup['id']}</strong></td>
				<td width="100"><input name="id[]" type="hidden" value="$usergroup['id']"><input name="title[]" value="$usergroup['title']" ></td>
				<td width="100"><a href="index.php?c=admin_usergroup&a=regular&id=$usergroup['id']">设置</a></td>
				<td><a href="javascript:if(window.confirm('确认删除?'))window.location='index.php?c=admin_usergroup&a=remove&id=$usergroup['id']'">删除</a></td>
			</tr>
			{/loop}
			<tr colspan="5" class="nobg">
    			<td><input type="submit" value="提交" class="btn"></td>
  		 	</tr>
		</table>
	</form>
	</div>
</div>

</body>

</html>
